#include "led.h"
#include "clock.h"

void delay(volatile unsigned int t)
{
	volatile unsigned int t2 = 0xFFFF;
	while (t--)
		for (; t2; t2--);
}

int main(void)
{
	clock_init();	
	led_init();

	while (1)
	{
		led_toggle(1);			// 改变LED1的状态
		delay(0x50000);
		//led_toggle(2);		// 改变LED1的状态
	}
	return 0;
}
